{% extends "base.html" %}

{% block title %}Product Orders - {{super()}}{% endblock %}

{% block extrahdrs %}
{% endblock %}


{% block sidebar %}
<div style="background-color:#FFFAC5;padding:12px;padding-top:12px;width:237px;border:1px solid #BAA770;">
	<h4 style="font-weight:bold;color:#19700D;">Login to Place Your Order</h4>
	<div style="text-align:right;">
		<form action="/" method="post" id="login">
			<label for="username">Username</label> &nbsp;<input type="text" name="username" id="username" /><br />
			<label for="username">Password</label> &nbsp;<input type="password" name="password" id="password" /><br />
			<button type="submit" name="action" value="login">Login</button>
		</form>
	</div>
</div>
# if error
	<br />
	<div class="error plus1" style="width:238px;">{{error|safe}}</div>
# endif
<br />
<p class="plus1">
	<strong>Don't have an account?</strong><br />
	Get in touch with us and we'll get you started.
	<br /><br />
	
	<a href="mailto:info@kawarthaecologicalgrowers.com?subject=Product%20Order%20Signup">info@kawarthaecologicalgrowers.com</a><br />
	705-439-3372<br />
	<br />
	472 Farms Rd., R.R.#2<br />
	Woodville, ON K0M 2T0<br />
</p>
{% endblock %}


{% block body %}
{% import '_product_list.html' as plist %}

<h3>Current Product Availability 
	# if current_list
	  - Updated {{ localtime(current_list.created).strftime('%B') }} {{ localtime(current_list.created).strftime('%d').strip('0') }}
	# endif
</h3>

# if current_list
	<p class="plus1">
		# if current_list.notes
			{{current_list.render_notes()|safe}}
		# else
			{# <em>(no notes)</em> #}
		# endif
	</p>
	{{ plist.product_list_table(current_list) }}
# else
	<br /><br />
	<p class="plus1">No product list available yet.</p> 
# endif


<br /><br />
		
	
{% endblock %}
